#include <X11/Xatom.h>
#include "gdkinternals.h"
-
+#include "gdkprofilerprivate.h"
#include "gdkintl.h"
#include <cairo-xlib.h>
egl_surface = gdk_x11_surface_get_egl_surface (surface, context_egl->egl_config);
+ gdk_profiler_add_mark (GDK_PROFILER_CURRENT_TIME, 0, "x11", "swap buffers");
if (display_x11->has_egl_swap_buffers_with_damage)
{
int i, j, n_rects = cairo_region_num_rectangles (painted);
#include <X11/Xatom.h>
#include "gdkinternals.h"
-
+#include "gdkprofilerprivate.h"
#include "gdkintl.h"
#include <cairo-xlib.h>
(unsigned long) gdk_x11_surface_get_xid (surface),
context_x11->do_frame_sync ? "yes" : "no"));
+ gdk_profiler_add_mark (GDK_PROFILER_CURRENT_TIME, 0, "x11", "swap buffers");
+
/* if we are going to wait for the vertical refresh manually
* we need to flush pending redraws, and we also need to wait
* for that to finish, otherwise we are going to tear.